package com.cy.pj.sys.dao;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

//定义角色菜单关系 Dao 对象，用于操作角色菜单关系表数据
@Mapper
public interface CGBRolesMenuDao {
    @Delete("delete from role_menu where roleId=#{roleId}")
    int deleteRoleId(Integer roleId);

    int insertRolesMenu(Integer roleId, List<Integer> menuIds);
}
